home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / answrbok / 4_7.lha / 4_7 / 4_7B.h < prev    next >
C/C++ Source or Header  |  1993-08-08  |  495b  |  24 lines

  1. * Copyright (c) 1990 by AT&T Bell Telephone Laboratories, Incorporated. */
  2. * The C++ Answer Book */
  3. * Tony Hansen */
  4. * All rights reserved. */
  5. / tnode.h: definitions for a binary tree
  6. / version 2
  7. ifndef TNODE_H
  8.  define TNODE_H
  9. truct tnode        // tree node
  10.  
  11.    char *tword;
  12.    int count;        // reference count
  13.    tnode *left;
  14.    tnode *right;
  15. ;
  16.  
  17. ypedef tnode **tree;
  18.  
  19. xtern tree newtree();
  20. xtern void addnode(tree, char *);
  21. xtern void printtree(tree);
  22. xtern void aprinttree(tree);
  23. endif /* TNODE_H */
  24.